<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
	xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
	layout:decorate="~{admin/layout/simple}">
<head>
	<title>登录</title>
</head>
<body>
<th:block layout:fragment="page-content">
	<div class="account-pages"></div>
	<div class="clearfix"></div>
	<div class="wrapper-page">
		<div class=" card-box">
			<div class="panel-heading">
				<h3 class="text-center">
					<strong class="text-custom">彩伞微信管理后台</strong>
				</h3>
			</div>
			<div class="panel-body">
				<form class="form-horizontal m-t-20" th:action="@{/admin/login}" method="post">
					<div th:if="${param.error != null and session.SPRING_SECURITY_LAST_EXCEPTION != null}" class="alert alert-danger alert-dismissable">
		                <button class="close" type="button" data-dismiss="alert" aria-hidden="true">×</button>
		                <span th:text="${session.SPRING_SECURITY_LAST_EXCEPTION.message}"> </span> 
		            </div>
		            <div th:if=${param.logout!=null}  class="alert alert-success alert-dismissable">
		                <button class="close" type="button" data-dismiss="alert" aria-hidden="true">×</button>
		                <span>退出成功！</span>
		            </div>
					
					<div class="form-group ">
						<div class="col-xs-12">
							<input class="form-control" type="text" name="username" required="" placeholder="管理员账号">
						</div>
					</div>

					<div class="form-group">
						<div class="col-xs-12">
							<input class="form-control" type="password" name="password" required="" placeholder="管理员密码">
						</div>
					</div>

					<div class="form-group text-center m-t-40">
						<div class="col-xs-12">
							<button class="btn btn-default btn-block text-uppercase waves-effect waves-light" type="submit">登 录</button>
						</div>
					</div>
				</form>
			</div>
		</div>
	</div>
</th:block>
<th:block layout:fragment="page-js">

</th:block>
</body>
</html>
